package com.community.charge.service.impl;

import com.community.charge.domain.vo.HouseVo;
import com.community.charge.mapper.HouseVoMapper;
import com.community.charge.service.HouseVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HouseVoServiceImpl implements HouseVoService {

    @Autowired
    private HouseVoMapper houseVoMapper;

    //根据楼宇绑定房屋下拉框
    @Override
    public List<HouseVo> getHouseVoNameAndId(Integer id) {
        return houseVoMapper.getHouseVoNameAndId(id);
    }

    //绑定搜索框的房屋下拉框
    @Override
    public List<HouseVo> getHouseVoIdAndName() {
        return houseVoMapper.getHouseVoIdAndName();
    }
}
